package cn.tianyigps.tianyigpsactivetask.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;

import java.util.Date;

/**
 * Created with IDEA
 * author:guibin.cui
 * Date:2018/7/13
 * Time:09:01
 * 设备统计数据model
 */
@Setter
@Getter
@JsonInclude(value=JsonInclude.Include.NON_NULL)
public class EquipmentStatsModel {

    //唯一标识
    @Id
    private String id;
    //任务id
    private String taskId;
    //设备id
    private String equipmentId;
    //Gps经度
    private Double gpsLongitude;
    //Gps纬度
    private Double gpsLatitude;
    //数据开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;
    //数据结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
    //数据时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;

    private String lineStatus;
    //状态切换点
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date lineStatusTime;
    //电源类型：有线 无线
    private String powerType;
    // 持续时间
    private Integer duration;
//    //总公里数
//    private Double totalKms;
//    // 平均速度
//    private Double avgSpeed;
//    // 停车次数
//    private Integer parkTotal;
}
